﻿using System;
using System.Collections.Generic;
using System.Security.Principal;

namespace Turquoise.Core.Entities
{
    [Serializable]
    public class TurquoiseIdentity : IIdentity
    {
        private List<int> _userRoles;
        public string Name { get; set; }
        public string AuthenticationType => "AuthenticationType";
        public bool IsAuthenticated { get; set; }
        public int UserId { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public bool RememberMe { get; set; }
        public List<int> UserRoles
        {
            get
            {
                if (_userRoles != null) return _userRoles;
                _userRoles = new List<int>();
                return _userRoles;

            }
            set { _userRoles = value; }
        }
        public string LanguageCode { get; set; }
    }
}
